/**
 * 
 */
package operator;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



/**
 * @author Nugumanova V.
 *
 */
public class Operator {
	private static final Logger LOGGER = LoggerFactory.getLogger(Operator.class);

	private int id;
	private int numberOfCalls;

	public Operator(int id) {
		this.id = id;
		this.numberOfCalls = 0;
		LOGGER.info("Operator #" + id + " is ready");

	}

	public int getId() {
		return id;
	}

	public int getNumberOfCalls() {
		return numberOfCalls;
	}

	public void setNumberOfCalls(int numberOfCalls) {
		this.numberOfCalls = numberOfCalls;
	}

	@Override
	public String toString() {
		return "Operator [id=" + id + ", numberOfCalls=" + numberOfCalls + "]";
	}

}
